<?php

namespace frontend\models;

use Yii;

/**
 * This is the model class for table "{{%tags}}".
 *
 * @property int $tagId
 * @property string $tagName
 * @property int $pageTotal
 * @property string $url
 * @property int $total 小说数量
 */
class Tags extends \common\models\Tags
{
    static public function getAll($fields = '*', $where = null){
        $m = static::find();
        if(!empty($where)){
            return $m->select($fields)->where($where)->asArray()->all();
        }
        return $m->select($fields)->asArray()->all();
    }
}
